package com.service.balance.impl;

import com.bean.Balance_record;
import com.dao.Balance_recordMapper;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.service.balance.BalanceRecordService;
import com.service.core.AbstractService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

/**
 * Created by Administrator on 2017/9/10.
 */
@Service
public class BalanceRecordServiceImpl extends AbstractService<Balance_record, Integer> implements BalanceRecordService {
    Logger logger = Logger.getLogger(BalanceRecordServiceImpl.class);

    @Autowired
    private Balance_recordMapper balance_recordMapper;

    @Override
    public Page findRecordByPage(int pageNum, int pageSize, HashMap<String, Object> paraMap) {
        PageHelper.startPage(pageNum,pageSize);
        Page page = (Page) balance_recordMapper.findRecordPage(paraMap);
        return page;
    }
}